﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Windows.Navigation;
using UI.Web.SL.Demo.SysAdmin.Controls;

namespace UI.Web.SL.Demo.SysAdmin.Pages.Sys
{
    public partial class DepartmentLE : BasePage
    {
        BoxTree treeView;
        public DepartmentLE()
        {
            InitializeComponent();
            treeView = new BoxTree();
            this.ScoViewBoxTree.Content = treeView;
        }

        private void ScoViewBoxTree_Loaded(object sender, RoutedEventArgs e)
        {
            if (treeView.totalWidth != 0)
            {
                ScoViewBoxTree.ScrollToHorizontalOffset(treeView.totalWidth / 2);
            }
        }
    }
}
